home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CMissionStartAnimation
- {
- matrix m_Placement = matrix(
- -0.073588, -0.997289, 0.000000, 11920.122070,
- 0.997289, -0.073588, 0.000000, 1977.507080,
- 0.000000, 0.000000, 1.000000, 222.721466,
- 0.000000, 0.000000, 0.000000, 1.000000
- );
-
- void CMissionStartAnimation()
- {
- }
-
- void OnPlayFrame(
- int iFrame,
- float fTime
- )
- {
- if (0 == iFrame)
- {
- // Core_CallFunction(SOID_GameController, "EnableControl", "", false);
- SetFrameDuration(1.0);
- }
- else
- if ((1 <= iFrame) && (iFrame < 4))
- {
- CreateEffect("EFFECTID_TimeJumpSplashRingEffect", m_Placement);
- SetFrameDuration(3.0 - float(iFrame - 1));
- }
- else
- if ((4 <= iFrame) && (iFrame < 8))
- {
- CreateEffect("EFFECTID_TimeJumpSplashRingEffect", m_Placement);
- SetFrameDuration(1.0 / (2.0 + float(iFrame - 4)));
- }
- else
- if (8 == iFrame)
- {
- CreateEffect("EFFECTID_TimeJumpEffect", m_Placement);
- SetFrameDuration(1.0);
- }
- else
- {
- Stop();
- // Core_CallFunction(SOID_GameController, "EnableControl", "Helicopter", true);
- }
- }
-
- void OnMissionLoaded()
- {
- Play();
- }
- }
-
-